package com.infocollect.project.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.infocollect.project.api.enums.FromTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * (TappFrom)实体类
 *
 * @author makejava
 * @since 2019-12-25 10:32:28
 */
@ApiModel("表单模板信息")
@Data
@TableName("tapp_from")
public class TappFromEntity extends Model<TappFromEntity> {
    @ApiModelProperty("主键")
    @TableId(value = "fid", type = IdType.AUTO)
    private Long fid;
    @ApiModelProperty("创建时间")
    private Date fcreationdate;
    @ApiModelProperty("创建人")
    private String fcreateby;
    @ApiModelProperty("最后修改时间")
    private Date flastupdatedate;
    @ApiModelProperty("最后修改人")
    private String flastupdateby;
    @ApiModelProperty("表单名称")
    private String fromname;
    @ApiModelProperty("表单html内容")
    private String fromcontent;
    @ApiModelProperty("表单设计JSON")
    private String fromdesignjson;
    @ApiModelProperty("备注信息")
    private String fremarks;
    @ApiModelProperty("表单对应表名")
    private String fromTableName;
    @ApiModelProperty("设置了查询条件")
    private  String queryJson;
    @ApiModelProperty("表单类型（1 element表单 2.AntDesign表单 3 问卷调查 4大屏分析 5流程表单 ）")
    private FromTypeEnum fromtype;
    @ApiModelProperty("弹出层的宽度设置")
    private  String  dialogwidth;
    @ApiModelProperty("开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    @ApiModelProperty("结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  Date  endDate;
    @ApiModelProperty("白名单")
    private  String  isWhite;
    @ApiModelProperty("允许修改")
    private  String  isModify;
    @ApiModelProperty("允许填报")
    private  String  isInput;
    @ApiModelProperty("提交截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  Date  modifyEndDate;
    @ApiModelProperty("显示截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  Date  showEndDate;
    @ApiModelProperty("是否网上确认")
    private  String  isNetconfirm;

}
